From: Harshad Gavali Date: Sat, 12 Jun 2021 19:11:52 +0000 (+0530) Subject: overviewControls: Avoid hiding early AppDisplay when transitioning to Session X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~259 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=177b36f82b9a884dd9ac8828c79fd9e44125a928;p=gnome-shell.git overviewControls: Avoid hiding early AppDisplay when transitioning to Session When transitioning from AppDisplay to Session, AppDisplay should be visible throughout the transition. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4214 Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 13535d068..88726573d 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -534,8 +534,8 @@ class ControlsManager extends St.Widget { if (!stateTransitionParams) stateTransitionParams = this._stateAdjustment.getStateTransitionParams(); - const { currentState, finalState } = stateTransitionParams; - const state = Math.max(currentState, finalState); + const { initialState, finalState } = stateTransitionParams; + const state = Math.max(initialState, finalState); this._appDisplay.visible = state > ControlsState.WINDOW_PICKER &&